package ch.netcetera.planningpoker.shared;

import ch.netcetera.planningpoker.client.model.GameProxy;
import ch.netcetera.planningpoker.shared.dao.GameDao;
import ch.netcetera.planningpoker.shared.locator.DaoServiceLocator;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value = GameDao.class, locator = DaoServiceLocator.class)
public interface GameRequest extends RequestContext {

    Request<Long> persistGame(GameProxy game);

    Request<GameProxy> findGame(Long id);

}
